
import { getAPI } from '/@/utils/axios-utils';
import { SysDictDataApi } from '/@/api-services/api';



const Dict = {
	async get(name) {
		let res = await(getAPI(SysDictDataApi).apiSysDictDataDataListCodeGet(name));
		let list =  res.data.result;
		res = list.map(item => {
			return {
				label: item.value,
				value: item.code
			}
		})
		return res;
	}
}

export default Dict;




